﻿using Basic.FlowApplication.Interface;
using Basic.FlowRemoteModel;
using Basic.FlowRemoteModel.Application;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.RpcEvent
{
    internal class SubmitAuditEvent : IRpcApiService
    {
        private readonly ISubmitAuditService _Service;

        public SubmitAuditEvent ( ISubmitAuditService service )
        {
            this._Service = service;
        }

        public FlowAuditItemStatus SubmitAuditResult ( SubmitAuditResult obj )
        {
            return this._Service.Submit(obj.LogId, obj.Result);
        }
    }
}
